Thresholds and Optimal Binary Comparison Search Trees
نویسندگان
چکیده
We present an O(n4)-time algorithm for the following problem: Given a set of items with known access frequencies, find the optimal binary search tree under the realistic assumption that each comparison can only result in a two-way decision: either an equality comparison or a less-than comparisons. This improves the best known result of O(n5) time, which is based on split tree algorithms. Our algorithm relies on establishing thresholds on the frequency of an item that can occur as an equality comparison at the root of an optimal tree. 2002 Elsevier Science (USA). All rights reserved. ✩ A preliminary abbreviated version of this paper appeared in FSTTCS 2001 [1]. * Corresponding author. E-mail addresses: [email protected] (R. Anderson), [email protected] (S. Kannan), [email protected] (H. Karloff), [email protected] (R.E. Ladner). 1 Research supported in part by ONR grant N00014-97-1-0505 and NSF grant CCR-9820885. 2 Research supported in part by NSF grant CCR-9732746. 3 Research performed in part while at AT&T Labs–Research, Florham Park, NJ 07932, and supported in part by NSF grant CCR-9732828. 0196-6774/02/$ – see front matter 2002 Elsevier Science (USA). All rights reserved. PII: S0196-6774(02) 00 20 31 R. Anderson et al. / Journal of Algorithms 44 (2002) 338–358 339
منابع مشابه
Profile and Height of Random Binary Search Trees
The purpose of this article is to survey recent results on distributional properties of random binary search trees. In particular we consider the profile and the height.
متن کاملP´olya Urn Models and Connections to Random Trees: A Review
This paper reviews P´olya urn models and their connection to random trees. Basic results are presented, together with proofs that underly the historical evolution of the accompanying thought process. Extensions and generalizations are given according to chronology: • P´olya-Eggenberger’s urn • Bernard Friedman’s urn • Generalized P´olya urns • Extended urn schemes • Invertible urn schemes ...
متن کاملOptimal Binary Search Trees
An optimal binary search tree is a binary search tree for which the nodes are arranged on levels such that the tree cost is minimum. For the purpose of a better presentation of optimal binary search trees, we will consider “extended binary search trees”, which have the keys stored at their internal nodes. Suppose “n” keys k1, k2, ... , k n are stored at the internal nodes of a binary search tre...
متن کاملProbabilistic analysis of the asymmetric digital search trees
In this paper, by applying three functional operators the previous results on the (Poisson) variance of the external profile in digital search trees will be improved. We study the profile built over $n$ binary strings generated by a memoryless source with unequal probabilities of symbols and use a combinatorial approach for studying the Poissonized variance, since the probability distribution o...
متن کاملEfficient Sequential Decision-Making Algorithms for Container Inspection Operations
Following work of Stroud and Saeger (Proceedings of ISI, Springer Verlag, New York, 2006) and Anand et al. (Proceedings of Computer, Communication and Control Technologies, 2003), we formulate a port of entry inspection sequencing task as a problem of finding an optimal binary decision tree for an appropriate Boolean decision function. We report on new algorithms for finding such optimal trees ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2001